<?php
// +----------------------------------------------------------------------
// | TVSD  [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2023 http://xgx.517528.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: 王斌
// +----------------------------------------------------------------------

namespace app\admin\validate\tvsd;

use think\Validate;

class DdSmz extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'name'   => 'unique:dd_smz',
        'sfz'   => 'unique:dd_smz',
        
    ];
    /**
     * 提示消息
     */
    protected $message = [
        'sfz.unique'=>'身份证已存在',
        'name.unique'=>'姓名已存在'
    ];
    /**
     * 验证场景
     */
    protected $scene = [
        'add'  => ['name','sfz'],
        'edit' => ['name','sfz'],
    ];
    
}